package com.lpit.service;

import com.lpit.dto.ArticleHomeDto;
import com.lpit.result.ResponseResult;
import com.lpit.pojo.Article;

import java.util.List;

/**
 * @author Administrator
 */
public interface ArticleService {
    /**
     * @param
     * @apiNote 查询所有
     * @return ResponseResult<Article>
     */
    public ResponseResult<List<Article>> selectList(ArticleHomeDto article);


    public ResponseResult<List<ArticleHomeDto>> selectHomePageDisplay();


    public ResponseResult<Integer> addArticle(Article article);

    /**
     *  累计文章阅读数
     */
    ResponseResult<Long> getReadSum();

}
